function Person(name, age, sex) {
  this.name = name;
  this.age = age;
  this.sex = sex;
}

Person.prototype = {
  eating: function () {
    console.log(`${this.name}${this.age}了`);
  },
  running: function () {
    console.log(`${this.name}${this.age}跑了`);
  },
};
Object.defineProperty(Person.prototype, "constructor", {
  value: Person,
  enumerable: false,
  writable: true,
  configurable: true,
});

let p1 = new Person("rkx", 18, "男");
let p2 = new Person("张三", 18, "男");

p1.eating();
p1.running();
